//
//  JwProgressHUD.h
//  JwPack
//
//  Created by 陈警卫 on 2024-08-21.
//

#import <MBProgressHUD/MBProgressHUD.h>

NS_ASSUME_NONNULL_BEGIN

extern NSString *GV_JwProgressHUD_backColorString;
extern NSString *GV_JwProgressHUD_tintColorString;

extern CGFloat GV_JwProgressHUD_delay;

extern NSString *GV_JwProgressHUD_successImageName;
extern NSString *GV_JwProgressHUD_warnImageName;
extern NSString *GV_JwProgressHUD_errorImageName;

@interface JwProgressHUD : MBProgressHUD

+ (JwProgressHUD *)showHUDTo:(nullable UIView *)view
                  customView:(nullable UIView *)customView
                        text:(nullable NSString *)text
                       model:(MBProgressHUDMode)model
                       delay:(NSTimeInterval)delay;

+ (JwProgressHUD *)showHUDTo:(nullable UIView *)view text:(nullable NSString *)text;

+ (JwProgressHUD *)showHUDText:(nullable NSString *)text;

+ (JwProgressHUD *)showHUDTo:(nullable UIView *)view;

+ (JwProgressHUD *)showHUD;

+ (JwProgressHUD *)showCustomHUDTo:(nullable UIView *)view customView:(nullable UIView *)customView text:(nullable NSString *)text delay:(NSTimeInterval)delay;

+ (JwProgressHUD *)showCustomHUDTo:(nullable UIView *)view image:(nullable UIImage *)image text:(nullable NSString *)text delay:(NSTimeInterval)delay;

+ (JwProgressHUD *)showCustomHUDTo:(nullable UIView *)view image:(nullable UIImage *)image text:(nullable NSString *)text;

+ (JwProgressHUD *)showSuccess:(nullable NSString *)text toView:(nullable UIView *)view;

+ (JwProgressHUD *)showWarning:(nullable NSString *)text toView:(nullable UIView *)view;

+ (JwProgressHUD *)showError:(nullable NSString *)text toView:(nullable UIView *)view;

+ (void)showError:(nullable NSString *)text;

+ (void)showSuccess:(nullable NSString *)text;

+ (void)showWarning:(nullable NSString *)text;

+ (JwProgressHUD *)showTextHUDTo:(nullable UIView *)view text:(nullable NSString *)text delay:(NSTimeInterval)delay;

+ (JwProgressHUD *)showTextHUDTo:(nullable UIView *)view text:(nullable NSString *)text;

+ (JwProgressHUD *)showText:(nullable NSString *)text;

@end

NS_ASSUME_NONNULL_END
